﻿package {
	import flash.events.*;
	import flash.display.*;

	public class Sub extends MovieClip {

		public function Sub() {
			this.loaderInfo.sharedEvents.addEventListener("MAIN_EVENT", onEvent);
		}

		private function onEvent(e:SharedEvents):void {
			O.o(e.data);
			//传回去
			var sharedEvents:SharedEvents = new SharedEvents("SUB_EVENT", true, true, e.data);
			this.loaderInfo.sharedEvents.dispatchEvent(sharedEvents);
		}

	}
}